import Mock from "mockjs";
import homeApi from './mockServerData/home'
import permissionApi from './mockServerData/permission'
import userApi from './mockServerData/user'

Mock.mock('/home/getData', homeApi.getStatisticalData)

Mock.mock(/permission\/getMenu/g, 'post', permissionApi.getMenu)
Mock.mock('/permission/getOperateFormLabel', 'post', permissionApi.getOperateFormLabel)

Mock.mock(/api\/user\/list/g, userApi.getUserList)
Mock.mock(/api\/user\/add/g, 'post', userApi.createUser)
Mock.mock(/api\/user\/delete/g, userApi.deleteUser)
Mock.mock(/api\/user\/edit/g, userApi.updateUser)
Mock.mock('/user/batchremove', userApi.batchRemove)